package com.chenpeijian.demo.demos.web.controller;

import com.chenpeijian.demo.common.annotation.ModifyParamPotent;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: student_code
 * @description:
 * @author: 陈培建
 * @create: 2024-12-20 15:23
 **/
@RestController
@RequestMapping("/aspect")
public class AspectController {
    @GetMapping("/example")
    @ModifyParamPotent("edit:")
    public String exampleMethod(@RequestParam("id") String id) {
        return "Received parameter: " + id;
    }
}
